home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 September / cd joy 74 No16.iso / mac / CD MIEUX-MIEUX N°13 / Escape Velocity / Plug-ins / Great-Civil-War.sit / Great-Civil-War / POVray source files / Rebel Dreadnaught.pov < prev    next >
Text File  |  1996-07-11  |  6KB  |  287 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4.  
  5. /* Top view */
  6.  
  7. camera {
  8.    location <0, 0, 300>
  9.    direction <0, 0, 20>
  10.    up       <0, 1, 0>
  11.    right    <1, 0, 0>
  12.    look_at  <0, 0, 0>
  13. }
  14.  
  15. /* Hail view */
  16.  
  17. /*
  18. camera {
  19.    location  <0,  40,  12>
  20.    direction <0,   0,   5.6>
  21.    up        <0,   1,    0>
  22.    right     <1,   0,    0>
  23.    look_at   <0,   0,    0>
  24. }
  25. */
  26.  
  27. /* Buy view */
  28.  
  29. /*
  30. camera {
  31.    location  <90,  75,  72>
  32.    direction <0,   0,   14.5>
  33.    up        <0,   1,    0>
  34.    right     <1,   0,    0>
  35.    look_at   <0,   0,    0>
  36.    rotate    <97, 0, 97>
  37. }
  38. */
  39.  
  40. /* Dreadnaught */
  41.  
  42. union {
  43.    cylinder {                   // Body
  44.      <0, -5, 0>,
  45.      <0,  5, 0>,
  46.      0.8
  47.    }  /* cylinder */
  48.    sphere {                     // Back
  49.       <0, -5, 0>
  50.       0.8
  51.       scale <1, 0.75, 1>
  52.       translate <0, -1.25, 0>
  53.    }  /* sphere */
  54.    sphere {                     // Front
  55.       <0, 5, 0>
  56.       0.8
  57.       scale <1, 3, 1>
  58.       translate <0, -10, 0>
  59.    }  /* sphere */
  60.  
  61.    union {
  62.  
  63.       sphere {                                                                        // Cockpit
  64.          <0.0, 4.7, 0.6>
  65.          0.5
  66.          scale <1.0, 2.0, 1.0>
  67.          translate <0.0, -4.3, 0.0>
  68.       }  /* sphere */
  69.  
  70.       intersection {
  71.          sphere {               // Front windows
  72.             <0.0, 4.7, 0.6>
  73.             0.501
  74.          }  /* sphere */
  75.          box {
  76.             <-0.5, 4.85, 0.9>
  77.             < 0.5, 5.21, 0.7>
  78.          }  /* box */
  79.          scale <1.0, 2.0, 1.0>
  80.          translate <0.0, -4.3, 0.0>
  81.          pigment { color red 1.8 green 1.8 }
  82.       }  /* intersection */
  83.  
  84.    }  /* union */
  85.  
  86.    union {                     // Engines
  87.       cylinder {
  88.          <0.0, -5.4, 0.0>,
  89.          <0.0, -6.0, 0.0>,
  90.          0.82
  91.       }  /* cylinder */
  92.       cone {
  93.          <0.0, -6.3, 0.0>, 0.6
  94.          <0.0, -4.5, 0.0>, 0.2
  95.       }  /* cone */
  96.       pigment { red 0.7 blue 0.7 green 0.7 }
  97.    }  /* union */
  98.  
  99.    difference {                        // Wings
  100.  
  101.       difference {
  102.  
  103.          union {                       // Wing outer edges
  104.            intersection {              // Right wing
  105.                box {
  106.                   <0.0, -6.0, -0.15>,
  107.                   <5.0,  4.0,  0.15>
  108.                }  /* box */
  109.                plane { 2*x, 2.7 rotate 30*z }
  110.                plane { 3*x, 5.7 rotate -50*z }
  111.                rotate 180*y
  112.             }  /* intersection */
  113.            intersection {               // Left wing
  114.                box {
  115.                   <0.0, -6.0, -0.15>,
  116.                   <5.0,  4.0,  0.15>
  117.                }  /* box */
  118.                plane { 2*x, 2.7 rotate 30*z }
  119.                plane { 3*x, 5.7 rotate -50*z }
  120.             }  /* intersection */
  121.          }  /* union */
  122.  
  123.          union {                    // Wing inner edges
  124.            intersection {           // Right wing
  125.                box {
  126.                   <0.0, -6.0, -0.16>,
  127.                   <5.0,  4.0,  0.16>
  128.                }  /* box */
  129.                plane { 2*x, 1.0 rotate 30*z }
  130.                plane { 3*x, 4.0 rotate -50*z }
  131.                rotate 180*y
  132.             }  /* intersection */
  133.            intersection {            // Left wing
  134.                box {
  135.                   <0.0, -6.0, -0.16>,
  136.                   <5.0,  4.0,  0.16>
  137.                }  /* box */
  138.                plane { 2*x, 1.0 rotate 30*z }
  139.                plane { 3*x, 4.0 rotate -50*z }
  140.             }  /* intersection */
  141.          }  /* union */
  142.  
  143.          scale <0.8, 1.0, 1.0>
  144.  
  145.       }  /* difference */
  146.  
  147.       box {
  148.          <-1.5, -1.5, -0.11>,
  149.          < 1.5,  1.5,  0.11>
  150.          rotate 45*z
  151.          translate <0.0, -6.5, 0.0> 
  152.       }  /* box */
  153.  
  154.       pigment { red 1.0 }
  155.       finish { reflection 0.2 }
  156.  
  157.    }  /* difference */
  158.  
  159.    difference {                       // Support ring
  160.       cylinder {
  161.          <0.0, -4.2, 0.0>,
  162.          <0.0, -5.1, 0.0>,
  163.          1.8
  164.       }  /* cylinder */
  165.       cylinder {
  166.          <0.0, -4.19, 0.0>,
  167.          <0.0, -5.11, 0.0>,
  168.          1.6
  169.       }  /* cylinder */
  170.       scale <1.0, 1.0, 0.75>
  171.       pigment { colour Silver }
  172.       finish { reflection 0.75 }
  173.    }  /* difference */
  174.  
  175.    intersection {                     // Fin
  176.       difference {
  177.          cone {
  178.             <0, 2.0, 0.8>, 0, <0, -6.0, 0.8>, 1.4
  179.          }  /* cone */
  180.          cone {
  181.             <0, -5.0, 0.8>, 0, <0, -6.1, 0.8>, 1.5
  182.          }  /* cone */
  183.       }  /* difference */
  184.       box {
  185.          <-0.15,  2.0, 3.8>, 
  186.          < 0.15, -6.10, 0.8>
  187.       }  /* box */
  188.       pigment { color red 1.0 }
  189.       finish { reflection 0.2 }
  190.    }  /* intersection */
  191.  
  192.    cylinder {           // Gun 1
  193.       <3.3, -3.0, -0.2>,
  194.       <3.3, -0.5, -0.2>,
  195.       0.2
  196.       pigment { color red 1.8 green 1.8 }
  197.    }  /* cylinder */
  198.    cylinder {           // Gun 2
  199.       <-3.3, -3.0, -0.2>,
  200.       <-3.3, -0.5, -0.2>,
  201.       0.2
  202.       pigment { color red 1.8 green 1.8 }
  203.    }  /* cylinder */
  204.    cylinder {           // Gun 3
  205.       <2.0,  0.0, -0.2>,
  206.       <2.0,  2.5, -0.2>,
  207.       0.2
  208.       pigment { color red 1.8 green 1.8 }
  209.    }  /* cylinder */
  210.    cylinder {           // Gun 4
  211.       <-2.0,  0.0, -0.2>,
  212.       <-2.0,  2.5, -0.2>,
  213.       0.2
  214.       pigment { color red 1.8 green 1.8 }
  215.    }  /* cylinder */
  216.  
  217.  
  218. /* pigment for top view */      
  219.    pigment { color red 0.8 green 0.8 blue 0.8 }
  220.  
  221. /* pigment for hail and buy view  */      
  222. //   pigment { color red 1.0 green 1.0 blue 1.0 }
  223.  
  224.    finish  { 
  225.       ambient 0.1
  226.       diffuse 0.8
  227.       reflection 0.05
  228.       phong_size 6 
  229.    }  /* finish */
  230.  
  231.    translate <0.0, -0.55, 0.0>        // center picture
  232.    rotate z*270
  233.  
  234. //   translate <-1.0, 0.0, -1.0>       // only for buy view
  235.  
  236. }  /* union */
  237.  
  238.  
  239. /* Light for top view */
  240.  
  241. light_source {
  242.    <-200.0, -170.0, 260.0>
  243.    colour red 0.6 green 0.6 blue 0.6
  244.    spotlight
  245.    point_at <0, 0, 0>
  246.    radius 10
  247.    falloff 20
  248.    tightness 10
  249. }
  250. light_source {
  251.    <-210.0, -180.0, 250.0>
  252.    colour red 0.6 green 0.6 blue 0.6
  253.    spotlight
  254.    point_at <0, 0, 0>
  255.    radius 10
  256.    falloff 20
  257.    tightness 10
  258. }
  259.  
  260. /* Light for hail view */
  261.  
  262. /*
  263. light_source {
  264.    <15.0, 20.0, 15.0>
  265.    colour red 1.0 green 1.0 blue 1.0
  266.    spotlight
  267.    point_at <0, 0, 0>
  268.    radius 20
  269.    falloff 20
  270.    tightness 10
  271. }
  272. */
  273.  
  274. /* Light for buy view */
  275.  
  276. /*
  277. light_source {
  278.    <60.0, 80.0, 75.0>
  279.    colour red 1.0 green 1.0 blue 1.0
  280.    spotlight
  281.    point_at <0, 0, 0>
  282.    radius 20
  283.    falloff 20
  284.    tightness 10
  285. }
  286. */
  287.